<h1>相册列表&nbsp;&nbsp;&nbsp;
<?php 
echo $this->Html->link('添加相册',array('plugin'=>'album','controller'=>'albums','action'=>'add'));
?>
</h1>

<table>
<tr>
<th>Id</th>
<th>用户名</th>
<th>相册名</th>
<th>描述</th>
<th>封面图片</th>
<th>创建时间</th>
<th>操作</th>
</tr>
<!-- 循环输出数据  -->
	<?php foreach ($albumList as $album): ?>
	<tr>
		<td>
			<?php echo $album['Album']['id']; ?>
		</td>
		<td>
			<?php echo $album['Album']['user_id']; ?>
		</td>
		<td>
			<?php echo $album['Album']['title']; ?>
		</td>
		<td>
			<?php echo $album['Album']['description']; ?>
		</td>
		<td>
			<?php echo $album['Album']['cover_id']; ?>
		</td>
		<td>
			<?php echo $album['Album']['created']; ?>
		</td>
		<td>
			<?php echo $this->Html->link('图片列表',"/album/albumpics/index/".$album['Album']['id']);?>
			<?php
				if($album['Album']['type_id'] != '0'){
					echo $this->Html->link('编辑',"/album/albums/edit/".$album['Album']['id']);
				}
			?>
			&nbsp;
			<?php echo $this->Html->link('删除',"/album/albums/delete/".$album['Album']['id'], null,'确认删除?');?>
		</td>
	</tr>
	<?php endforeach; ?>
</table>
<!-- begin 分页 -->
<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>
</p>
<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
</div>
<!-- end 分页 -->